<template>
	<!-- <view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
	</view> -->
	<view class="page">
		<view class="card">
			<view class="title">
				<view class="date">2023.04.14</view>
				<view class="todayClass">今日课程</view>
			</view>
			<view class="select">
				<u-radio-group v-model="radiovalue1" placement="column" @change="groupChange" borderBottom=true>
					<u-radio :customStyle="{marginBottom: '20px'}" v-for="(item, index) in radiolist1" :key="index"
						shape="circle" activeColor="#C4957D" :label="item.name" :name="item.name" labelSize="50rpx"
						size="50rpx" @change="radioChange">
					</u-radio>
				</u-radio-group>
			</view>
			<button class="qiandao" @tap="goDetail">签到</button>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				// 基本案列数据
				radiolist1: [{
						name: '高级编程',
						disabled: false
					},
					{
						name: '编译原理',
						disabled: false
					},
					{
						name: '软件需求',
						disabled: false
					}, {
						name: '可信软件',
						disabled: false
					}, {
						name: '云计算',
						disabled: false
					}, {
						name: '算法分析和设计',
						disabled: false
					}
				],
				// u-radio-group的v-model绑定的值如果设置为某个radio的name，就会被默认选中
				radiovalue1: '苹果',
			};
		},
		methods: {
			groupChange(n) {
				console.log('groupChange', n);
			},
			radioChange(n) {
				console.log('radioChange', n);
			},
			goDetail() {
				uni.navigateTo({
					url: '/pages/signIn/signIn'
				});
			}
		}
	};
</script>
<style>
	.page {
		display: flex;
	}

	.select {
		margin-top: 50rpx;
		margin-left: 80rpx;

	}

	.qiandao {
		/* left: 70px; */
		/* top: 598px; */
		/* margin-top: 20rpx; */
		width: 252px;
		height: 55px;
		line-height: 55px;
		border-radius: 40px 40px 40px 40px;
		background-color: rgba(72, 73, 68, 1);
		color: rgba(236, 235, 230, 1);
		font-size: 20px;
		text-align: center;
		font-family: Arial;
		border: 1px solid rgba(187, 187, 187, 1);
		letter-spacing: 30rpx;
	}

	.title {
		left: 47px;
		top: 134px;
		width: 298px;
		height: 130px;
		line-height: 20px;
		border-radius: 20px 20px 0px 0px;
		background-color: rgba(196, 149, 125, 1);
		color: rgba(16, 16, 16, 1);
		font-size: 14px;
		text-align: center;
		box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.4);
		font-family: Arial;
		border: 1px solid rgba(187, 187, 187, 1);
		display: flex;
		flex-direction: column;
	}

	.date {
		/* left: 111px;
		top: 175px;
		width: 171px;
		height: 40px; */
		margin: auto;
		color: rgba(255, 253, 246, 1);
		font-size: 28px;
		text-align: left;
		font-family: PingFangSC-regular;
	}

	.todayClass {
		margin: auto;
		/* left: 155px;
		top: 232px;
		width: 80px;
		height: 28px; */
		color: rgba(255, 253, 246, 1);
		font-size: 20px;
		text-align: left;
		font-family: PingFangSC-regular;
	}

	.card {
		margin: auto;
		/* left: 47px;
		top: 134rpx; */
		/* width: 298px; */
		height: 580px;
		margin-top: 50rpx;
		/* line-height: 20px; */
		border-radius: 20px 20px 20px 20px;
		background-color: rgba(246, 244, 239, 1);
		color: rgba(16, 16, 16, 1);
		font-size: 14px;
		text-align: center;
		box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
		font-family: Arial;
		border: 1px solid rgba(187, 187, 187, 1);
		display: flex;
		flex-direction: column;
	}

	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>